/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-16
 * Time: 13:48
 */
public class Exercise {
    //数组的使用
    public static void main(String[] args) {
        int []arr1 ={1,2,3,4,5};
        int []arr2 = new int[10];
        int []arr3 = new int[]{1,2,3,4,5};
        for (int i = 0; i < 5; i++) {
            System.out.print(arr3[i] + " ");
        }
        for (int x:arr1) {
            System.out.println(x);
        }
    };
}
